﻿<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="generator" content="Jekyll v3.6.0">
<title>表单内时间控件 &middot; BootstrapVue</title>
<!-- Bootstrap 核心CSS -->
<link href="../../../v4/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- 本文档额外专用css -->
<link href="../../../v4/assets/css/docsearch.min.css" rel="stylesheet">
<link href="../../../v4/assets/css/docs.min.css" rel="stylesheet">
<link href="../../style/bv_path.css" rel="stylesheet">

<!-- Favicons图标定义 -->
<link data-n-head="ssr" rel="manifest" href="../../manifest.json">
<link data-n-head="ssr" rel="shortcut icon" href="../../style/icons/icon_64.png">
<link data-n-head="ssr" rel="apple-touch-icon" href="../../style/icons/icon_512.png" sizes="512x512">

<!-- Meta关键字定义 -->
<meta name="description" content="The most popular HTML, CSS, and JS library in the world.">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">

</head>
<body>
<a id="skippy" class="sr-only sr-only-focusable" href="#content">
<div class="container"> <span class="skiplink-text">跳到主体内容</span> </div>
</a>
<header class="navbar navbar-expand navbar-dark flex-column flex-md-row bd-navbar"> <a class="navbar-brand mr-0 mr-md-2" href="../" aria-label="Bootstrap">
  <svg class="d-block" width="36" height="36" viewbox="0 0 612 612" xmlns="http://www.w3.org/2000/svg" focusable="false">
    <title>Bootstrap</title>
    <path fill="currentColor" d="M510 8a94.3 94.3 0 0 1 94 94v408a94.3 94.3 0 0 1-94 94H102a94.3 94.3 0 0 1-94-94V102a94.3 94.3 0 0 1 94-94h408m0-8H102C45.9 0 0 45.9 0 102v408c0 56.1 45.9 102 102 102h408c56.1 0 102-45.9 102-102V102C612 45.9 566.1 0 510 0z"/>
    <path fill="currentColor" d="M196.77 471.5V154.43h124.15c54.27 0 91 31.64 91 79.1 0 33-24.17 63.72-54.71 69.21v1.76c43.07 5.49 70.75 35.82 70.75 78 0 55.81-40 89-107.45 89zm39.55-180.4h63.28c46.8 0 72.29-18.68 72.29-53 0-31.42-21.53-48.78-60-48.78h-75.57zm78.22 145.46c47.68 0 72.73-19.34 72.73-56s-25.93-55.37-76.46-55.37h-74.49v111.4z"/>
  </svg>
  </a>
  <div class="navbar-nav-scroll">
    <ul class="navbar-nav bd-navbar-nav flex-row">
      <li class="nav-item"><a class="nav-link " href="../">首页</a></li>
      <li class="nav-item"><a class="nav-link" href="index.html">中文手册</a></li>
      <li class="nav-item"><a class="nav-link active" href="../components">组件</a></li>
      <li class="nav-item"><a class="nav-link " href="../directives">指令</a></li>
      <li class="nav-item"><a class="nav-link " href="../reference">参考</a></li>
      <li class="nav-item"><a class="nav-link " href="https://bootstrap-vue.org/play" target="_blank">体验</a></li>
      <li class="nav-item"><a class="nav-link " href="http://code.z01.com/v4"><i class="zi zi_bold" zico="粗"></i> Boostrap</a></li>
      <li class="nav-item"><a class="nav-link" href="http://ico.z01.com" target="_blank" rel="noopener">zico图标系统</a></li>
      <li class="nav-item"><a class="nav-link" href="http://www.z01.com" target="_blank" rel="noopener">Zoomla!逐浪CMS</a></li>
    </ul>
  </div>
  <ul class="navbar-nav flex-row ml-md-auto d-none d-md-flex">
    <li class="nav-item dropdown"> <a class="nav-item nav-link dropdown-toggle mr-md-2" href="#" id="bd-versions" data-toggle="dropdown" aria-haspopup="true" aria-expanded="alse"> v2.12.0 </a>
      <div class="dropdown-menu dropdown-menu-right" aria-labelledby="bd-versions"> 
        <a class="dropdown-item active" href="../../../bootstrap-vue/docs/4.0/">Latest (4.3.x)</a>
        <a class="dropdown-item" href="/Boot/">v3.3.7</a>
        <a class="dropdown-item" href="/Sass/">Sass语言</a>
        <a class="dropdown-item" href="/Emmet/">Emmet语法</a>
        <a class="dropdown-item" href="//www.z01.com/tool/" target="_blank">IIS站长工具</a>
        <a class="dropdown-item" href="//ad.z01.com/" target="_blank">广告源码</a>
        <a class="dropdown-item" href="//v.z01.com/mb/" target="_blank">免费模板</a>
        <a class="dropdown-item" href="//v.z01.com/" target="_blank">H5移动创作</a>
        <a class="dropdown-item" href="//www.z01.com/help/web/3234.shtml" target="_blank">Flexbox布局</a>
		<a class="dropdown-item" href="/boot/font.html" target="_blank">Font Awesome</a>
</div>
    </li>
    <li class="nav-item"> <a class="nav-link p-2" href="//zoomla.github.io/bootstrap4-zhcn-documentation" target="_blank" rel="noopener" aria-label="GitHub">
      <svg class="navbar-nav-svg" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 512 499.36" focusable="false">
        <title>GitHub</title>
        <path d="M256 0C114.64 0 0 114.61 0 256c0 113.09 73.34 209 175.08 242.9 12.8 2.35 17.47-5.56 17.47-12.34 0-6.08-.22-22.18-.35-43.54-71.2 15.49-86.2-34.34-86.2-34.34-11.64-29.57-28.42-37.45-28.42-37.45-23.27-15.84 1.73-15.55 1.73-15.55 25.69 1.81 39.21 26.38 39.21 26.38 22.84 39.12 59.92 27.82 74.5 21.27 2.33-16.54 8.94-27.82 16.25-34.22-56.84-6.43-116.6-28.43-116.6-126.49 0-27.95 10-50.8 26.35-68.69-2.63-6.48-11.42-32.5 2.51-67.75 0 0 21.49-6.88 70.4 26.24a242.65 242.65 0 0 1 128.18 0c48.87-33.13 70.33-26.24 70.33-26.24 14 35.25 5.18 61.27 2.55 67.75 16.41 17.9 26.31 40.75 26.31 68.69 0 98.35-59.85 120-116.88 126.32 9.19 7.9 17.38 23.53 17.38 47.41 0 34.22-.31 61.83-.31 70.23 0 6.85 4.61 14.81 17.6 12.31C438.72 464.97 512 369.08 512 256.02 512 114.62 397.37 0 256 0z" fill="currentColor" fill-rule="evenodd"/>
      </svg>
      </a> </li>
    <li class="nav-item"> <a class="nav-link p-2" href="http://www.z01.com/blog/ren/3214.shtml" target="_blank" rel="noopener" aria-label="Slack">译者说</a></li>
  </ul>
  <a class="btn btn-bd-yellow d-none d-lg-inline-block mb-3 mb-md-0 ml-md-3" href="download.html">下载 Bootstrap</a> </header>

<div class="container-fluid">
  <div class="row flex-xl-nowrap">
    <div class="col-12 col-md-3 col-xl-2 bd-sidebar">
      <form class="bd-search d-flex align-items-center">
        <input type="search" class="form-control" id="search-input" placeholder="Search..." aria-label="Search for..." autocomplete="off">
        <button class="btn btn-link bd-search-docs-toggle d-md-none p-0 ml-3" type="button" data-toggle="collapse" data-target="#bd-docs-nav" aria-controls="bd-docs-nav" aria-expanded="false" aria-label="Toggle docs navigation">
        <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 30 30" width="30" height="30" focusable="false">
          <title>Menu</title>
          <path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-miterlimit="10" d="M4 7h22M4 15h22M4 23h22"/>
        </svg>
        </button>
      </form>


<nav class="collapse bd-links" id="bd-docs-nav">
<div class=""><a href="../" class="bd-toc-link">首页</a></div>
<div class="bd-toc-item nuxt-link-exact-active "><a href="../../../bootstrap-vue/docs/" class="bd-toc-link  "> 起步 </a>
<ul class="nav bd-sidenav">
</ul>
</div>
<div class="bd-toc-item active"><a href="../../../bootstrap-vue/docs/components/" class="bd-toc-link nuxt-link-exact-active"> 组件 </a>
<ul class="nav bd-sidenav">
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/index.html" class="nav-link"> 组件目录 </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/alert.html" class="nav-link"> 警告提示框(Alert) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/badge.html" class="nav-link"> 徽章(Badge) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/badge.html" class="nav-link"> 面包屑导航(Breadcrumb) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/button.html" class="nav-link"> 按钮(Button) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/button-group.html" class="nav-link"> 按钮组(Button Group) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/button-toolbar.html" class="nav-link"> 按钮Toolbar(Button Toolbar) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/calendar.html" class="nav-link"> 日历组件(Calendar) <small class="badge text-uppercase badge-success">New</small> </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/card.html" class="nav-link"> 卡片(Card) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/carousel.html" class="nav-link"> 轮播效果(Carousel) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/collapse.html" class="nav-link"> 折叠面板(Collapse) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/dropdown.html" class="nav-link"> 下拉菜单(Dropdown) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/embed.html" class="nav-link"> 嵌入(Embed) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form.html" class="nav-link"> 表单(Form) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-checkbox.html" class="nav-link"> 表单复选框(Form Checkbox) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-datepicker.html" class="nav-link"> 表单时间选择器(Form Datepicker) <small class="badge text-uppercase badge-success">New</small> </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-file.html" class="nav-link"> 文件选择(Form File) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-group.html" class="nav-link"> 表单组合(Form Group) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-input.html" class="nav-link"> 表单输入框(Form Input) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-radio.html" class="nav-link"> 单选择表单Form Radio </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-select.html" class="nav-link"> 下拉式表单(Form Select) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-spinbutton.html" class="nav-link"> 按钮式表单(Form Spinbuttno) <small class="badge text-uppercase badge-success">New</small> </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-tags.html" class="nav-link"> Tags表单选择器(Form Tags) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-textarea.html" class="nav-link"> 文本框(Form Textarea) </a></li>
<li class="nav-item active"><a href="../../../bootstrap-vue/docs/components/form-timepicker.html" class="nav-link"> 表单内时间控件(Form Timepicker) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/image.html" class="nav-link"> 图片(Image) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/input-group.html" class="nav-link"> 输入框(Input Group) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/jumbotron.html" class="nav-link"> Hero大块屏(Jumbotron) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/layout.html" class="nav-link"> 布局与网络Layout and Grid System </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/link.html" class="nav-link"> 链接(Link)</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/list-group.html" class="nav-link"> 列表组(List group) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/media.html" class="nav-link"> 媒体(Media) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/modal.html" class="nav-link"> 弹出模态框(Modal) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/nav.html" class="nav-link"> 导航(Nav) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/navbar.html" class="nav-link"> 导航栏(Navbar) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/pagination.html" class="nav-link"> 分页(Pagination) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/pagination-nav.html" class="nav-link"> 分页导航(Pagination Nav) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/popover.html" class="nav-link"> 指示备注(Popover) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/progress.html" class="nav-link"> 进度指示器(Progress) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/spinner.html" class="nav-link"> 旋转指示器(Spinner) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/table.html" class="nav-link"> 表格(Table) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/tabs.html" class="nav-link"> 选项卡(Tabs) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/time.html" class="nav-link"> 时间组件(Time) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/toast.html" class="nav-link"> 冒泡推送(Toasts) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/tooltip.html" class="nav-link"> tip提示组件(Tooltip) </a></li>
</ul>
</div>
<div class="bd-toc-item"><a href="../../../bootstrap-vue/docs/directives/" class="bd-toc-link"> 指令 </a>
<ul class="nav bd-sidenav">
<li class="nav-item"><a href="../../../bootstrap-vue/docs/directives/index.html" class="nav-link"> 指令目录 </a></li>
<li class="nav-item active"><a href="../../../bootstrap-vue/docs/directives/hover.html" class="nav-link"> Hover 指令<small class="badge text-uppercase badge-success">New</small> </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/directives/popover.html" class="nav-link"> Popover 提示备注</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/directives/scrollspy.html" class="nav-link"> Scrollspy 滚动监听</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/directives/tooltip.html" class="nav-link"> Tooltip 提示指令</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/directives/visible.html" class="nav-link"> Visible 可见性操作<small class="badge text-uppercase badge-success">New</small> </a></li>
</ul>
</div>
<div class="bd-toc-item"><a href="../../../bootstrap-vue/docs/icons.html" class="bd-toc-link"> Icons图标</a>
<ul class="nav bd-sidenav">
</ul>
</div>
  
<div class="bd-toc-item"><a class="bd-toc-link" href="../../../bootstrap-vue/docs/reference">参考</a>
<ul class="nav bd-sidenav">
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference" class="nav-link.html"> 参考目录 </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/accessibility.html" class="nav-link">友好访问</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/color-variants.html" class="nav-link">Color颜色变量 </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/images.html" class="nav-link"> 组件图像img的src路径解析</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/router-links.html" class="nav-link"> Router路由支持 </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/size-props.html" class="nav-link">大小规格</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/spacing-classes.html" class="nav-link">间距处理</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/starter-templates.html" class="nav-link">开始模板</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/theming.html" class="nav-link">主题色彩</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/utility-classes.html" class="nav-link">通用Class类</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/validation.html" class="nav-link">Form表单验证</a></li>
</ul>
</div>
<div class=""><a href="https://bootstrap-vue.org/play" class="bd-toc-link" target="_blank">在线模拟器</a></div>
</nav>
</div>

<div class="d-none d-xl-block col-xl-2 bd-toc">

<ul class="section-nav">
<li class="nav-item toc-entry mb-2"><a target="_self" href="#form-timepicker" class="nav-link font-weight-bold"><span>表单内时间控件(Form Timepicker)</span></a></li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#v-model-return-value" class="nav-link"><span>v-model 返回值</span></a> <!----></li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#disabled-and-readonly-states" class="nav-link"><span>禁用和只读状态</span></a> <!----></li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#validation-states" class="nav-link"><span>验证状态</span></a> <!----></li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#styling" class="nav-link"><span>样式</span></a>
<ul class="nav flex-column">
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#enabling-of-seconds-spinbutton" class="nav-link"><span>启用秒旋转按钮</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#control-sizing" class="nav-link"><span>控制尺寸</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#placeholder" class="nav-link"><span>占位符</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#optional-controls" class="nav-link"><span>可选控件</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#dropdown-placement" class="nav-link"><span>下拉位置</span></a></li>
</ul>
</li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#internationalization" class="nav-link"><span>国际化</span></a>
<ul class="nav flex-column">
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#understanding-the-hourcycle" class="nav-link"><span>理解 hourCycle</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#forcing-12-or-24-hour-interface" class="nav-link"><span>强制 12 或 24 小时界面</span></a></li>
</ul>
</li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#accessibility" class="nav-link"><span>辅助功能</span></a> <!----></li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#implementation-notes" class="nav-link"><span>实施说明</span></a> <!----></li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#see-also" class="nav-link"><span>另请参阅</span></a> <!----></li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#component-reference" class="nav-link"><span>组件引用</span></a>
<ul class="nav flex-column">
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#comp-ref-b-form-timepicker" class="nav-link"><span>&lt;b-form-timepicker&gt;</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#importing-individual-components" class="nav-link"><span>导入单个组件</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#importing-as-a-plugin" class="nav-link"><span>导入为Vue.js插件</span></a></li>
</ul>
</li>
</ul>
</div>

<main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 bd-content" role="main">

<nav data-v-aafc4aea="" aria-label="Breadcrumbs" class="float-left mt-2 mb-0 mb-lg-2">
<ol data-v-aafc4aea="" class="breadcrumb d-inline-flex bg-transparent px-2 py-1 my-0">
<li data-v-aafc4aea="" class="breadcrumb-item"><a data-v-aafc4aea="" href="../../" class="nuxt-link-active" target="_self">首页</a></li>
<li data-v-aafc4aea="" class="breadcrumb-item"><a data-v-aafc4aea="" href="../../../bootstrap-vue/docs" class="nuxt-link-active" target="_self">中文手册</a></li>
<li data-v-aafc4aea="" class="breadcrumb-item"><a data-v-aafc4aea="" href="../../../bootstrap-vue/docs/components/" class="nuxt-link-active" target="_self">组件</a></li>
<li data-v-aafc4aea="" class="breadcrumb-item active"><span data-v-aafc4aea="" aria-current="location">表单内时间控件</span></li>
</ol>
</nav>
<div class="clearfix d-block"></div>
  <h1 class="bd-title" id="content">表单内时间控件(Form Timepicker)</h1>
<p class="bd-lead"><code class="text-nowrap" translate="no">&lt;b-form-timepicker&gt;</code> 是 BootstrapVue 自定义时间选择器输入表单控件，它提供完整的 WAI-ARIA 遵从性和国际化支持。</p>
  <script type="text/javascript" src="../../../v4/assets/js/pupCMS.js"></script>



<nav class="bd-quick-links mb-3 d-xl-none" style="" data-v-4abf2740="">
<header data-v-4abf2740="">
<button data-v-4abf2740="" type="button" class="btn font-weight-bold btn-outline-secondary btn-sm btn-block collapsed" aria-controls="bd-quick-links-collapse" aria-expanded="false"> Show page table of contents </button>
</header>
<ul data-v-4abf2740="" id="bd-quick-links-collapse" class="collapse" style="display: none;">
<li data-v-4abf2740=""><a data-v-4abf2740="" target="_self" href="#v-model-return-value" class=""><span data-v-4abf2740="">v-model return value</span></a> </li>
<li data-v-4abf2740=""><a data-v-4abf2740="" target="_self" href="#disabled-and-readonly-states" class=""><span data-v-4abf2740="">Disabled and readonly states</span></a> </li>
<li data-v-4abf2740=""><a data-v-4abf2740="" target="_self" href="#validation-states" class=""><span data-v-4abf2740="">Validation states</span></a> </li>
<li data-v-4abf2740=""><a data-v-4abf2740="" target="_self" href="#styling" class=""><span data-v-4abf2740="">Styling</span></a>
<ul data-v-4abf2740="">
<li data-v-4abf2740=""><a data-v-4abf2740="" target="_self" href="#enabling-of-seconds-spinbutton" class=""><span data-v-4abf2740="">Enabling of seconds spinbutton</span></a></li>
<li data-v-4abf2740=""><a data-v-4abf2740="" target="_self" href="#control-sizing" class=""><span data-v-4abf2740="">Control sizing</span></a></li>
<li data-v-4abf2740=""><a data-v-4abf2740="" target="_self" href="#placeholder" class=""><span data-v-4abf2740="">Placeholder</span></a></li>
<li data-v-4abf2740=""><a data-v-4abf2740="" target="_self" href="#optional-controls" class=""><span data-v-4abf2740="">Optional controls</span></a></li>
<li data-v-4abf2740=""><a data-v-4abf2740="" target="_self" href="#dropdown-placement" class=""><span data-v-4abf2740="">Dropdown placement</span></a></li>
</ul>
</li>
<li data-v-4abf2740=""><a data-v-4abf2740="" target="_self" href="#internationalization" class=""><span data-v-4abf2740="">Internationalization</span></a>
<ul data-v-4abf2740="">
<li data-v-4abf2740=""><a data-v-4abf2740="" target="_self" href="#understanding-the-hourcycle" class=""><span data-v-4abf2740="">Understanding the hourCycle</span></a></li>
<li data-v-4abf2740=""><a data-v-4abf2740="" target="_self" href="#forcing-12-or-24-hour-interface" class=""><span data-v-4abf2740="">Forcing 12 or 24 hour interface</span></a></li>
</ul>
</li>
<li data-v-4abf2740=""><a data-v-4abf2740="" target="_self" href="#accessibility" class=""><span data-v-4abf2740="">Accessibility</span></a> </li>
<li data-v-4abf2740=""><a data-v-4abf2740="" target="_self" href="#implementation-notes" class=""><span data-v-4abf2740="">Implementation notes</span></a> </li>
<li data-v-4abf2740=""><a data-v-4abf2740="" target="_self" href="#see-also" class=""><span data-v-4abf2740="">See also</span></a> </li>
<li data-v-4abf2740=""><a data-v-4abf2740="" target="_self" href="#component-reference" class=""><span data-v-4abf2740="">组件引用</span></a>
<ul data-v-4abf2740="">
<li data-v-4abf2740=""><a data-v-4abf2740="" target="_self" href="#comp-ref-b-form-timepicker" class=""><span data-v-4abf2740="">&lt;b-form-timepicker&gt;</span></a></li>
<li data-v-4abf2740=""><a data-v-4abf2740="" target="_self" href="#importing-individual-components" class=""><span data-v-4abf2740="">导入单个组件</span></a></li>
<li data-v-4abf2740=""><a data-v-4abf2740="" target="_self" href="#importing-as-a-plugin" class=""><span data-v-4abf2740="">导入为Vue.js插件</span></a></li>
</ul>
</li>
</ul>
</nav>
<p>作为 <a href="/docs/components/time" class="font-weight-bold"><code class="text-nowrap" translate="no">&lt;b-time&gt;</code></a> 组件的表单控件包装器组件，它提供了附加的验证状态表示形式和紧凑的接口。原始 HTML5 时间输入在显示方式，可访问性方面有所不同，在某些情况下并非所有浏览器都支持。<code class="text-nowrap" translate="no">&lt;b-form-timepicker&gt;</code> 在所有浏览器平台和设备之间提供一致且可访问的界面。</p>
<p><code class="text-nowrap" translate="no">&lt;b-form-timepicker&gt;</code> 组件在 BootstrapVue 版本 <code class="text-nowrap" translate="no">v2.6.0</code> 中引入。</p>
<div translate="translate" class="bd-example vue-example vue-example-b-form-timepicker">
<div>
<div role="group" dir="ltr" class="b-form-btn-label-control form-control dropdown d-flex p-0 h-auto align-items-stretch b-form-timepicker" id="__BVID__468__outer_" lang="en" aria-labelledby="__BVID__468__value_">
<button type="button" aria-haspopup="dialog" aria-expanded="false" class="btn border-0 h-auto py-0" id="__BVID__468">
<svg width="1em" height="1em" viewBox="0 0 20 20" focusable="false" role="img" alt="icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="bi-clock b-icon bi">
<g transform="translate(10 10) scale(1.25 1.25) translate(-10 -10)">
<path fill-rule="evenodd" d="M10 17a7 7 0 100-14 7 7 0 000 14zm8-7a8 8 0 11-16 0 8 8 0 0116 0z" clip-rule="evenodd"></path>
<path fill-rule="evenodd" d="M10 4a.5.5 0 01.5.5V10a.5.5 0 01-.5.5H5.5a.5.5 0 010-1h4v-5A.5.5 0 0110 4z" clip-rule="evenodd"></path>
</g>
</svg>
</button>
<div role="dialog" tabindex="-1" aria-modal="false" class="dropdown-menu p-2" id="__BVID__468__dialog_" aria-labelledby="__BVID__468__value_"></div>
<label class="form-control text-break text-wrap border-0 bg-transparent h-auto pl-1 m-0 text-muted" id="__BVID__468__value_" for="__BVID__468">No time selected</label>
</div>
<div class="mt-2">Value: ''</div>
</div>
</div>
<div class="bd-code">
<figure class="highlight"><pre class="hljs html p-2 xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-form-timepicker</span> <span class="hljs-attr">v-model</span>=<span class="hljs-string">"value"</span> <span class="hljs-attr">locale</span>=<span class="hljs-string">"en"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-form-timepicker</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mt-2"</span>&gt;</span>Value: '{{ value }}'<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">
  <span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> {
    data() {
      <span class="hljs-keyword">return</span> {
        <span class="hljs-attr">value</span>: <span class="hljs-string">''</span>
      }
    }
  }
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></pre></figure>
</div>
<h2 id="v-model-return-value" class="bv-no-focus-ring"><span class="bd-content-title"><code class="text-nowrap" translate="no">v-model</code> 返回值<a class="anchorjs-link" href="#v-model-return-value" aria-labelledby="v-model-return-value"></a></span></h2>
<p><code class="text-nowrap" translate="no">&lt;b-form-timepicker&gt;</code> 始终以 <code class="text-nowrap" translate="no">'HH:mm:ss'</code> 的格式返回字符串，该字符串与本机浏览器 <code class="text-nowrap" translate="no">&lt;input type="time"&gt;</code> 控件返回的格式相同。该值的范围是从 <code class="text-nowrap" translate="no">'00:00:00'</code> 到 <code class="text-nowrap" translate="no">'23:59:59'</code>（使用 <code class="text-nowrap" translate="no">'h23'</code> 小时周期语法的24小时制）。</p>
<p>如果未选择任何时间，则 <code class="text-nowrap" translate="no">&lt;b-form-timepicker&gt;</code> 返回一个空字符串（<code class="text-nowrap" translate="no">''</code>）。</p>
<h2 id="disabled-and-readonly-states" class="bv-no-focus-ring"><span class="bd-content-title">禁用和只读状态<a class="anchorjs-link" href="#disabled-and-readonly-states" aria-labelledby="disabled-and-readonly-states"></a></span></h2>
<p>设置 <code class="text-nowrap" translate="no">disabled</code> 属性将删除 <code class="text-nowrap" translate="no">&lt;b-form-timepicker&gt;</code> 组件的所有交互性。</p>
<p>设置 <code class="text-nowrap" translate="no">readonly</code> 属性将禁用选择时间，但将保持组件的交互性，从而允许在旋转按钮之间进行切换。<code class="text-nowrap" translate="no">v-model</code> 不会以只读状态更新。</p>
<div translate="translate" class="bd-example vue-example vue-example-b-form-timepicker-disabled-readonly">
<div>
<fieldset class="form-group" id="__BVID__472">
<legend tabindex="-1" class="bv-no-focus-ring col-form-label pt-0" id="__BVID__472__BV_label_">Select time picker interactive state</legend>
<div tabindex="-1" role="group" class="bv-no-focus-ring">
<div role="radiogroup" tabindex="-1" class="bv-no-focus-ring" aria-controls="ex-disabled-readonly" id="__BVID__473">
<div class="custom-control custom-control-inline custom-radio">
<input type="radio" autocomplete="off" class="custom-control-input" value="disabled" id="__BVID__474" name="__BVID__473">
<label class="custom-control-label" for="__BVID__474">Disabled</label>
</div>
<div class="custom-control custom-control-inline custom-radio">
<input type="radio" autocomplete="off" class="custom-control-input" value="readonly" id="__BVID__475" name="__BVID__473">
<label class="custom-control-label" for="__BVID__475">Readonly</label>
</div>
<div class="custom-control custom-control-inline custom-radio">
<input type="radio" autocomplete="off" class="custom-control-input" value="normal" id="__BVID__476" name="__BVID__473">
<label class="custom-control-label" for="__BVID__476">Normal</label>
</div>
</div>
</div>
</fieldset>
<div id="ex-disabled-readonly__outer_" role="group" dir="ltr" aria-disabled="true" aria-labelledby="ex-disabled-readonly__value_" class="b-form-btn-label-control form-control dropdown d-flex p-0 h-auto align-items-stretch b-form-timepicker" lang="zh-CN">
<button id="ex-disabled-readonly" type="button" disabled="disabled" aria-haspopup="dialog" aria-expanded="false" class="btn border-0 h-auto py-0">
<svg width="1em" height="1em" viewBox="0 0 20 20" focusable="false" role="img" alt="icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="bi-clock b-icon bi">
<g transform="translate(10 10) scale(1.25 1.25) translate(-10 -10)">
<path fill-rule="evenodd" d="M10 17a7 7 0 100-14 7 7 0 000 14zm8-7a8 8 0 11-16 0 8 8 0 0116 0z" clip-rule="evenodd"></path>
<path fill-rule="evenodd" d="M10 4a.5.5 0 01.5.5V10a.5.5 0 01-.5.5H5.5a.5.5 0 010-1h4v-5A.5.5 0 0110 4z" clip-rule="evenodd"></path>
</g>
</svg>
</button>
<div id="ex-disabled-readonly__dialog_" role="dialog" tabindex="-1" aria-modal="false" aria-labelledby="ex-disabled-readonly__value_" class="dropdown-menu p-2"></div>
<label id="ex-disabled-readonly__value_" for="ex-disabled-readonly" class="form-control text-break text-wrap border-0 bg-transparent h-auto pl-1 m-0 text-muted">No time selected</label>
</div>
</div>
</div>
<div class="bd-code">
<figure class="highlight"><pre class="hljs html p-2 xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-form-group</span> <span class="hljs-attr">label</span>=<span class="hljs-string">"Select time picker interactive state"</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-form-radio-group</span> <span class="hljs-attr">v-model</span>=<span class="hljs-string">"state"</span> <span class="hljs-attr">aria-controls</span>=<span class="hljs-string">"ex-disabled-readonly"</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">b-form-radio</span> <span class="hljs-attr">value</span>=<span class="hljs-string">"disabled"</span>&gt;</span>Disabled<span class="hljs-tag">&lt;/<span class="hljs-name">b-form-radio</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">b-form-radio</span> <span class="hljs-attr">value</span>=<span class="hljs-string">"readonly"</span>&gt;</span>Readonly<span class="hljs-tag">&lt;/<span class="hljs-name">b-form-radio</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">b-form-radio</span> <span class="hljs-attr">value</span>=<span class="hljs-string">"normal"</span>&gt;</span>Normal<span class="hljs-tag">&lt;/<span class="hljs-name">b-form-radio</span>&gt;</span>
      <span class="hljs-tag">&lt;/<span class="hljs-name">b-form-radio-group</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-form-group</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-form-timepicker</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"ex-disabled-readonly"</span> <span class="hljs-attr">:disabled</span>=<span class="hljs-string">"disabled"</span> <span class="hljs-attr">:readonly</span>=<span class="hljs-string">"readonly"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-form-timepicker</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">
  <span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> {
    data() {
      <span class="hljs-keyword">return</span> {
        <span class="hljs-attr">state</span>: <span class="hljs-string">'disabled'</span>
      }
    },
    <span class="hljs-attr">computed</span>: {
      disabled() {
        <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.state === <span class="hljs-string">'disabled'</span>
      },
      readonly() {
        <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.state === <span class="hljs-string">'readonly'</span>
      }
    }
  }
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></pre></figure>
</div>
<h2 id="validation-states" class="bv-no-focus-ring"><span class="bd-content-title">验证状态<a class="anchorjs-link" href="#validation-states" aria-labelledby="validation-states"></a></span></h2>
<p><code class="text-nowrap" translate="no">&lt;b-form-timepicker&gt;</code> 通过布尔 <code class="text-nowrap" translate="no">state</code> 属性支持无效和有效的样式。将 <code class="text-nowrap" translate="no">state</code> 设置为 boolean <code class="text-nowrap" translate="no">false</code> 会将输入设置为无效，而将其设置为 boolean <code class="text-nowrap" translate="no">true</code> 会将其设置为有效。 将 state 设置为 <code class="text-nowrap" translate="no">null</code> 不会显示任何验证状态样式（默认）。</p>
<div translate="translate" class="bd-example vue-example vue-example-b-form-timepicker-validation">
<div>
<label for="timepicker-invalid">Choose a time (invalid style)</label>
<div id="datepicker-invalid__outer_" role="group" dir="ltr" aria-labelledby="datepicker-invalid__value_" aria-invalid="true" class="b-form-btn-label-control form-control dropdown d-flex p-0 h-auto align-items-stretch b-form-timepicker mb-2 is-invalid" lang="zh-CN">
<button id="datepicker-invalid" type="button" aria-haspopup="dialog" aria-expanded="false" aria-invalid="true" class="btn border-0 h-auto py-0">
<svg width="1em" height="1em" viewBox="0 0 20 20" focusable="false" role="img" alt="icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="bi-clock b-icon bi">
<g transform="translate(10 10) scale(1.25 1.25) translate(-10 -10)">
<path fill-rule="evenodd" d="M10 17a7 7 0 100-14 7 7 0 000 14zm8-7a8 8 0 11-16 0 8 8 0 0116 0z" clip-rule="evenodd"></path>
<path fill-rule="evenodd" d="M10 4a.5.5 0 01.5.5V10a.5.5 0 01-.5.5H5.5a.5.5 0 010-1h4v-5A.5.5 0 0110 4z" clip-rule="evenodd"></path>
</g>
</svg>
</button>
<div id="datepicker-invalid__dialog_" role="dialog" tabindex="-1" aria-modal="false" aria-labelledby="datepicker-invalid__value_" class="dropdown-menu p-2"></div>
<label id="datepicker-invalid__value_" for="datepicker-invalid" aria-invalid="true" class="form-control text-break text-wrap border-0 bg-transparent h-auto pl-1 m-0 text-muted is-invalid">No time selected</label>
</div>
<label for="timepicker-valid">Choose a time (valid style)</label>
<div id="datepicker-valid__outer_" role="group" dir="ltr" aria-labelledby="datepicker-valid__value_" class="b-form-btn-label-control form-control dropdown d-flex p-0 h-auto align-items-stretch b-form-timepicker is-valid" lang="zh-CN">
<button id="datepicker-valid" type="button" aria-haspopup="dialog" aria-expanded="false" class="btn border-0 h-auto py-0">
<svg width="1em" height="1em" viewBox="0 0 20 20" focusable="false" role="img" alt="icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="bi-clock b-icon bi">
<g transform="translate(10 10) scale(1.25 1.25) translate(-10 -10)">
<path fill-rule="evenodd" d="M10 17a7 7 0 100-14 7 7 0 000 14zm8-7a8 8 0 11-16 0 8 8 0 0116 0z" clip-rule="evenodd"></path>
<path fill-rule="evenodd" d="M10 4a.5.5 0 01.5.5V10a.5.5 0 01-.5.5H5.5a.5.5 0 010-1h4v-5A.5.5 0 0110 4z" clip-rule="evenodd"></path>
</g>
</svg>
</button>
<div id="datepicker-valid__dialog_" role="dialog" tabindex="-1" aria-modal="false" aria-labelledby="datepicker-valid__value_" class="dropdown-menu p-2"></div>
<label id="datepicker-valid__value_" for="datepicker-valid" class="form-control text-break text-wrap border-0 bg-transparent h-auto pl-1 m-0 text-muted is-valid">No time selected</label>
</div>
</div>
</div>
<div class="bd-code">
<figure class="highlight"><pre class="hljs html p-2 xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">for</span>=<span class="hljs-string">"timepicker-invalid"</span>&gt;</span>Choose a time (invalid style)<span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-form-timepicker</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"datepicker-invalid"</span> <span class="hljs-attr">:state</span>=<span class="hljs-string">"false"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mb-2"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-form-timepicker</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">for</span>=<span class="hljs-string">"timepicker-valid"</span>&gt;</span>Choose a time (valid style)<span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-form-timepicker</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"datepicker-valid"</span> <span class="hljs-attr">:state</span>=<span class="hljs-string">"true"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-form-timepicker</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span></pre></figure>
</div>
<p>请注意，本机浏览器验证不适用于 <code class="text-nowrap" translate="no">&lt;b-form-timepicker&gt;</code> 。</p>
<h2 id="styling" class="bv-no-focus-ring"><span class="bd-content-title">样式<a class="anchorjs-link" href="#styling" aria-labelledby="styling"></a></span></h2>
<h3 id="enabling-of-seconds-spinbutton" class="bv-no-focus-ring"><span class="bd-content-title">启用秒旋转按钮<a class="anchorjs-link" href="#enabling-of-seconds-spinbutton" aria-labelledby="enabling-of-seconds-spinbutton"></a></span></h3>
<p>默认情况下，不显示秒旋转按钮。 要启用秒数部分，请将 <code class="text-nowrap" translate="no">show-seconds</code> 属性设置为 <code class="text-nowrap" translate="no">true</code> 以启用秒数选择按钮。 如果 <code class="text-nowrap" translate="no">show-seconds</code> 为 false（或未提供），则返回的值将始终将时间字符串的秒部分设置为 <code class="text-nowrap" translate="no">00</code> 。</p>
<div translate="translate" class="bd-example vue-example vue-example-b-form-timepicker-show-seconds">
<div>
<div role="group" dir="ltr" class="b-form-btn-label-control form-control dropdown d-flex p-0 h-auto align-items-stretch b-form-timepicker" id="__BVID__488__outer_" lang="en" aria-labelledby="__BVID__488__value_">
<button type="button" aria-haspopup="dialog" aria-expanded="false" class="btn border-0 h-auto py-0" id="__BVID__488">
<svg width="1em" height="1em" viewBox="0 0 20 20" focusable="false" role="img" alt="icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="bi-clock b-icon bi">
<g transform="translate(10 10) scale(1.25 1.25) translate(-10 -10)">
<path fill-rule="evenodd" d="M10 17a7 7 0 100-14 7 7 0 000 14zm8-7a8 8 0 11-16 0 8 8 0 0116 0z" clip-rule="evenodd"></path>
<path fill-rule="evenodd" d="M10 4a.5.5 0 01.5.5V10a.5.5 0 01-.5.5H5.5a.5.5 0 010-1h4v-5A.5.5 0 0110 4z" clip-rule="evenodd"></path>
</g>
</svg>
</button>
<div role="dialog" tabindex="-1" aria-modal="false" class="dropdown-menu p-2" id="__BVID__488__dialog_" aria-labelledby="__BVID__488__value_"></div>
<label class="form-control text-break text-wrap border-0 bg-transparent h-auto pl-1 m-0 text-muted" id="__BVID__488__value_" for="__BVID__488">No time selected</label>
</div>
<div class="mt-2">Value: ''</div>
</div>
</div>
<div class="bd-code">
<figure class="highlight"><pre class="hljs html p-2 xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-form-timepicker</span> <span class="hljs-attr">v-model</span>=<span class="hljs-string">"value"</span> <span class="hljs-attr">show-seconds</span> <span class="hljs-attr">locale</span>=<span class="hljs-string">"en"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-form-timepicker</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mt-2"</span>&gt;</span>Value: '{{ value }}'<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">
  <span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> {
    data() {
      <span class="hljs-keyword">return</span> {
        <span class="hljs-attr">value</span>: <span class="hljs-string">''</span>
      }
    }
  }
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></pre></figure>
</div>
<h3 id="control-sizing" class="bv-no-focus-ring"><span class="bd-content-title">控制尺寸<a class="anchorjs-link" href="#control-sizing" aria-labelledby="control-sizing"></a></span></h3>
<p>喜欢更大或更小的 <code class="text-nowrap" translate="no">&lt;b-form-timepicker&gt;</code> 控件吗？对于较小的表单控件，将 <code class="text-nowrap" translate="no">size</code> 属性设置为 <code class="text-nowrap" translate="no">'sm'</code> ，对于较大的表单控件，将 size 属性设置为 <code class="text-nowrap" translate="no">'lg'</code> 。请注意，这不会影响弹出时间选择对话框的大小。</p>
<div translate="translate" class="bd-example vue-example vue-example-b-form-timepicker-control-size">
<div>
<label for="timepicker-sm">Small time picker</label>
<div id="timepicker-sm__outer_" role="group" dir="ltr" aria-labelledby="timepicker-sm__value_" class="b-form-btn-label-control form-control dropdown d-flex p-0 h-auto align-items-stretch b-form-timepicker mb-2 form-control-sm" local="en" lang="zh-CN">
<button id="timepicker-sm" type="button" aria-haspopup="dialog" aria-expanded="false" class="btn border-0 h-auto py-0 btn-sm">
<svg width="1em" height="1em" viewBox="0 0 20 20" focusable="false" role="img" alt="icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="bi-clock b-icon bi">
<g transform="translate(10 10) scale(1.25 1.25) translate(-10 -10)">
<path fill-rule="evenodd" d="M10 17a7 7 0 100-14 7 7 0 000 14zm8-7a8 8 0 11-16 0 8 8 0 0116 0z" clip-rule="evenodd"></path>
<path fill-rule="evenodd" d="M10 4a.5.5 0 01.5.5V10a.5.5 0 01-.5.5H5.5a.5.5 0 010-1h4v-5A.5.5 0 0110 4z" clip-rule="evenodd"></path>
</g>
</svg>
</button>
<div id="timepicker-sm__dialog_" role="dialog" tabindex="-1" aria-modal="false" aria-labelledby="timepicker-sm__value_" class="dropdown-menu p-2"></div>
<label id="timepicker-sm__value_" for="timepicker-sm" class="form-control text-break text-wrap border-0 bg-transparent h-auto pl-1 m-0 text-muted form-control-sm">No time selected</label>
</div>
<label for="timepicker-lg">Large time picker</label>
<div id="timepicker-lg__outer_" role="group" dir="ltr" aria-labelledby="timepicker-lg__value_" class="b-form-btn-label-control form-control dropdown d-flex p-0 h-auto align-items-stretch b-form-timepicker form-control-lg" local="en" lang="zh-CN">
<button id="timepicker-lg" type="button" aria-haspopup="dialog" aria-expanded="false" class="btn border-0 h-auto py-0 btn-lg">
<svg width="1em" height="1em" viewBox="0 0 20 20" focusable="false" role="img" alt="icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="bi-clock b-icon bi">
<g transform="translate(10 10) scale(1.25 1.25) translate(-10 -10)">
<path fill-rule="evenodd" d="M10 17a7 7 0 100-14 7 7 0 000 14zm8-7a8 8 0 11-16 0 8 8 0 0116 0z" clip-rule="evenodd"></path>
<path fill-rule="evenodd" d="M10 4a.5.5 0 01.5.5V10a.5.5 0 01-.5.5H5.5a.5.5 0 010-1h4v-5A.5.5 0 0110 4z" clip-rule="evenodd"></path>
</g>
</svg>
</button>
<div id="timepicker-lg__dialog_" role="dialog" tabindex="-1" aria-modal="false" aria-labelledby="timepicker-lg__value_" class="dropdown-menu p-2"></div>
<label id="timepicker-lg__value_" for="timepicker-lg" class="form-control text-break text-wrap border-0 bg-transparent h-auto pl-1 m-0 text-muted form-control-lg">No time selected</label>
</div>
</div>
</div>
<div class="bd-code">
<figure class="highlight"><pre class="hljs html p-2 xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">for</span>=<span class="hljs-string">"timepicker-sm"</span>&gt;</span>Small time picker<span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-form-timepicker</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"timepicker-sm"</span> <span class="hljs-attr">size</span>=<span class="hljs-string">"sm"</span> <span class="hljs-attr">local</span>=<span class="hljs-string">"en"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mb-2"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-form-timepicker</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">for</span>=<span class="hljs-string">"timepicker-lg"</span>&gt;</span>Large time picker<span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-form-timepicker</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"timepicker-lg"</span> <span class="hljs-attr">size</span>=<span class="hljs-string">"lg"</span> <span class="hljs-attr">local</span>=<span class="hljs-string">"en"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-form-timepicker</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span></pre></figure>
</div>
<h3 id="placeholder" class="bv-no-focus-ring"><span class="bd-content-title">占位符<a class="anchorjs-link" href="#placeholder" aria-labelledby="placeholder"></a></span></h3>
<p>如果未选择日期，则通过 <code class="text-nowrap" translate="no">placeholder</code> 属性将自定义占位符文本添加到控件中。如果未提供占位符，则使用 <code class="text-nowrap" translate="no">label-no-time-selected</code> 的值。</p>
<div translate="translate" class="bd-example vue-example vue-example-b-form-timepicker-placeholder">
<div>
<label for="timepicker-placeholder">Time picker with placeholder</label>
<div id="timepicker-placeholder__outer_" role="group" dir="ltr" aria-labelledby="timepicker-placeholder__value_" class="b-form-btn-label-control form-control dropdown d-flex p-0 h-auto align-items-stretch b-form-timepicker" local="en" lang="zh-CN">
<button id="timepicker-placeholder" type="button" aria-haspopup="dialog" aria-expanded="false" class="btn border-0 h-auto py-0">
<svg width="1em" height="1em" viewBox="0 0 20 20" focusable="false" role="img" alt="icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="bi-clock b-icon bi">
<g transform="translate(10 10) scale(1.25 1.25) translate(-10 -10)">
<path fill-rule="evenodd" d="M10 17a7 7 0 100-14 7 7 0 000 14zm8-7a8 8 0 11-16 0 8 8 0 0116 0z" clip-rule="evenodd"></path>
<path fill-rule="evenodd" d="M10 4a.5.5 0 01.5.5V10a.5.5 0 01-.5.5H5.5a.5.5 0 010-1h4v-5A.5.5 0 0110 4z" clip-rule="evenodd"></path>
</g>
</svg>
</button>
<div id="timepicker-placeholder__dialog_" role="dialog" tabindex="-1" aria-modal="false" aria-labelledby="timepicker-placeholder__value_" class="dropdown-menu p-2"></div>
<label id="timepicker-placeholder__value_" for="timepicker-placeholder" class="form-control text-break text-wrap border-0 bg-transparent h-auto pl-1 m-0 text-muted">Choose a time</label>
</div>
</div>
</div>
<div class="bd-code">
<figure class="highlight"><pre class="hljs html p-2 xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">for</span>=<span class="hljs-string">"timepicker-placeholder"</span>&gt;</span>Time picker with placeholder<span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-form-timepicker</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"timepicker-placeholder"</span> <span class="hljs-attr">placeholder</span>=<span class="hljs-string">"Choose a time"</span> <span class="hljs-attr">local</span>=<span class="hljs-string">"en"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-form-timepicker</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span></pre></figure>
</div>
<h3 id="optional-controls" class="bv-no-focus-ring"><span class="bd-content-title">可选控件<a class="anchorjs-link" href="#optional-controls" aria-labelledby="optional-controls"></a></span></h3>
<p>通过 <code class="text-nowrap" translate="no">now-button</code> 或 <code class="text-nowrap" translate="no">reset-button</code> 属性将可选的控制按钮添加到日历弹出窗口的底部。可以通过 <code class="text-nowrap" translate="no">no-close-button</code> 属性移除默认的关闭按钮。</p>
<ul>
<li>现在按钮选择当前时间</li>
<li>重置按钮将清除所选时间，或将时间设置为 <code class="text-nowrap" translate="no">reset-value</code> 属性的值（如果提供）</li>
<li>关闭按钮关闭时间弹出窗口</li>
</ul>
<div translate="translate" class="bd-example vue-example vue-example-b-form-timepicker-footer-buttons">
<div>
<label for="timepicker-buttons">Time picker with optional footer buttons</label>
<div id="timepicker-buttons__outer_" role="group" dir="ltr" aria-labelledby="timepicker-buttons__value_" class="b-form-btn-label-control form-control dropdown d-flex p-0 h-auto align-items-stretch b-form-timepicker" lang="en">
<button id="timepicker-buttons" type="button" aria-haspopup="dialog" aria-expanded="false" class="btn border-0 h-auto py-0">
<svg width="1em" height="1em" viewBox="0 0 20 20" focusable="false" role="img" alt="icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="bi-clock b-icon bi">
<g transform="translate(10 10) scale(1.25 1.25) translate(-10 -10)">
<path fill-rule="evenodd" d="M10 17a7 7 0 100-14 7 7 0 000 14zm8-7a8 8 0 11-16 0 8 8 0 0116 0z" clip-rule="evenodd"></path>
<path fill-rule="evenodd" d="M10 4a.5.5 0 01.5.5V10a.5.5 0 01-.5.5H5.5a.5.5 0 010-1h4v-5A.5.5 0 0110 4z" clip-rule="evenodd"></path>
</g>
</svg>
</button>
<div id="timepicker-buttons__dialog_" role="dialog" tabindex="-1" aria-modal="false" aria-labelledby="timepicker-buttons__value_" class="dropdown-menu p-2"></div>
<label id="timepicker-buttons__value_" for="timepicker-buttons" class="form-control text-break text-wrap border-0 bg-transparent h-auto pl-1 m-0 text-muted">No time selected</label>
</div>
</div>
</div>
<div class="bd-code">
  <figure class="highlight">
<pre class="hljs html p-2 xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">for</span>=<span class="hljs-string">"timepicker-buttons"</span>&gt;</span>Time picker with optional footer buttons<span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-form-timepicker</span>
      <span class="hljs-attr">id</span>=<span class="hljs-string">"timepicker-buttons"</span>
      <span class="hljs-attr">now-button</span>
      <span class="hljs-attr">reset-button</span>
      <span class="hljs-attr">locale</span>=<span class="hljs-string">"en"</span>
    &gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-form-timepicker</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span></pre></figure>
</div>
<p>可选按钮的文本可以通过 <code class="text-nowrap" translate="no">label-now-button</code> ，<code class="text-nowrap" translate="no">label-reset-button</code> 和 <code class="text-nowrap" translate="no">label-close-button</code> 属性进行设置。由于页脚部分的宽度有限，建议使这些标签简短。</p>
<h3 id="dropdown-placement" class="bv-no-focus-ring"><span class="bd-content-title">下拉位置<a class="anchorjs-link" href="#dropdown-placement" aria-labelledby="dropdown-placement"></a></span></h3>
<p>使用下拉道具 <code class="text-nowrap" translate="no">right</code> ，<code class="text-nowrap" translate="no">dropup</code> ，<code class="text-nowrap" translate="no">dropright</code> ，<code class="text-nowrap" translate="no">dropleft</code> ，<code class="text-nowrap" translate="no">no-flip</code> ，和 <code class="text-nowrap" translate="no">offset</code> 来控制弹出日历的位置。</p>
<p>有关这些属性的效果和用法的详细信息，请参考 <a href="/docs/components/dropdown" class="font-weight-bold"><code class="text-nowrap" translate="no">&lt;b-dropdown&gt;</code> documentation</a>【文档】。</p>
<h2 id="internationalization" class="bv-no-focus-ring"><span class="bd-content-title">国际化<a class="anchorjs-link" href="#internationalization" aria-labelledby="internationalization"></a></span></h2>
<p>时间接口的国际化通过 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat" target="_blank" rel="noopener"><code class="text-nowrap" translate="no">Intl.DateTimeFormat</code></a> 和 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat" target="_blank" rel="noopener"><code class="text-nowrap" translate="no">Intl.NumberFormat</code></a> 提供，除了应用于时间控件元素的标签（aria-labels，选定状态等）之外。 您必须为这些标签提供自己的翻译。可用的语言环境取决于浏览器（并非所有浏览器都支持所有语言环境）。</p>
<p>默认情况下，<code class="text-nowrap" translate="no">&lt;b-form-timepicker&gt;</code> 将使用浏览器的默认语言环境，但是您可以通过 <code class="text-nowrap" translate="no">locale</code> 属性指定要使用的语言环境。该属性可以接受单个语言环境字符串，也可以接受一个语言环境字符串数组（按最喜欢的语言环境到最不喜欢的语言顺序列出）。</p>
<p>发出的 <code class="text-nowrap" translate="no">'context'</code> 事件将包括时间控件已解析到的语言环境（可能与请求的语言环境不同，具体取决于 <code class="text-nowrap" translate="no">Intl</code> 支持的语言环境）。</p>
<p>对于使用 Node.js 时的服务器端呈现（SSR），请确保您使用的 Node.js 运行时支持 <code class="text-nowrap" translate="no">Intl</code> 和将要使用的语言环境。有关详细信息，请参阅 <a href="https://nodejs.org/api/intl.html" target="_blank" rel="noopener">Node Intl support documentation</a>【支持文档】。</p>
<div translate="translate" class="bd-example vue-example vue-example-b-form-time-i18n">
<div class="row">
<div class="mb-3 col-12">
<label for="example-locales">Locale:</label>
<select id="example-locales" class="custom-select">
<option value="en-US">English US (en-US)</option>
<option value="de">German (de)</option>
<option value="ar-EG">Arabic Egyptian (ar-EG)</option>
<option value="zh">Chinese (zh)</option>
</select>
</div>
<div class="col-md-6">
<div role="group" dir="ltr" class="b-form-btn-label-control form-control dropdown d-flex p-0 h-auto align-items-stretch b-form-timepicker" id="__BVID__508__outer_" lang="en-US" aria-labelledby="__BVID__508__value_">
<button type="button" aria-haspopup="dialog" aria-expanded="false" class="btn border-0 h-auto py-0" id="__BVID__508">
<svg width="1em" height="1em" viewBox="0 0 20 20" focusable="false" role="img" alt="icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="bi-clock b-icon bi">
<g transform="translate(10 10) scale(1.25 1.25) translate(-10 -10)">
<path fill-rule="evenodd" d="M10 17a7 7 0 100-14 7 7 0 000 14zm8-7a8 8 0 11-16 0 8 8 0 0116 0z" clip-rule="evenodd"></path>
<path fill-rule="evenodd" d="M10 4a.5.5 0 01.5.5V10a.5.5 0 01-.5.5H5.5a.5.5 0 010-1h4v-5A.5.5 0 0110 4z" clip-rule="evenodd"></path>
</g>
</svg>
</button>
<div role="dialog" tabindex="-1" aria-modal="false" class="dropdown-menu p-2" id="__BVID__508__dialog_" aria-labelledby="__BVID__508__value_"></div>
<label class="form-control text-break text-wrap border-0 bg-transparent h-auto pl-1 m-0 text-muted" id="__BVID__508__value_" for="__BVID__508">No time selected</label>
</div>
</div>
<div class="col">
<p>Value: <b>''</b></p>
<p class="mb-0">Context:</p>
<figure class="highlight"><pre class="small">{
  "locale": "en-US",
  "isRTL": false,
  "hourCycle": "h12",
  "hour12": true,
  "hours": null,
  "minutes": null,
  "seconds": null,
  "value": "",
  "formatted": "No time selected"
}</pre></figure>
</div>
</div>
</div>
<div class="bd-code">
<figure class="highlight"><pre class="hljs html p-2 xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">b-row</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-col</span> <span class="hljs-attr">cols</span>=<span class="hljs-string">"12"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mb-3"</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">for</span>=<span class="hljs-string">"example-locales"</span>&gt;</span>Locale:<span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-form-select</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"example-locales"</span> <span class="hljs-attr">v-model</span>=<span class="hljs-string">"locale"</span> <span class="hljs-attr">:options</span>=<span class="hljs-string">"locales"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-form-select</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-col</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-col</span> <span class="hljs-attr">md</span>=<span class="hljs-string">"6"</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-form-timepicker</span>
        <span class="hljs-attr">v-model</span>=<span class="hljs-string">"value"</span>
        <span class="hljs-attr">v-bind</span>=<span class="hljs-string">"labels[locale] || {}"</span>
        <span class="hljs-attr">:locale</span>=<span class="hljs-string">"locale"</span>
        <span class="hljs-attr">show-seconds</span>
        @<span class="hljs-attr">context</span>=<span class="hljs-string">"onContext"</span>
      &gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-form-timepicker</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-col</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-col</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>Value: <span class="hljs-tag">&lt;<span class="hljs-name">b</span>&gt;</span>'{{ value }}'<span class="hljs-tag">&lt;/<span class="hljs-name">b</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mb-0"</span>&gt;</span>Context:<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">pre</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"small"</span>&gt;</span>{{ context }}<span class="hljs-tag">&lt;/<span class="hljs-name">pre</span>&gt;</span>
   <span class="hljs-tag">&lt;/<span class="hljs-name">b-col</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">b-row</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">
  <span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> {
    data() {
      <span class="hljs-keyword">return</span> {
        <span class="hljs-attr">value</span>: <span class="hljs-string">''</span>,
        <span class="hljs-attr">context</span>: <span class="hljs-literal">null</span>,
        <span class="hljs-attr">locale</span>: <span class="hljs-string">'en-US'</span>,
        <span class="hljs-attr">locales</span>: [
          { <span class="hljs-attr">value</span>: <span class="hljs-string">'en-US'</span>, <span class="hljs-attr">text</span>: <span class="hljs-string">'English US (en-US)'</span> },
          { <span class="hljs-attr">value</span>: <span class="hljs-string">'de'</span>, <span class="hljs-attr">text</span>: <span class="hljs-string">'German (de)'</span> },
          { <span class="hljs-attr">value</span>: <span class="hljs-string">'ar-EG'</span>, <span class="hljs-attr">text</span>: <span class="hljs-string">'Arabic Egyptian (ar-EG)'</span> },
          { <span class="hljs-attr">value</span>: <span class="hljs-string">'zh'</span>, <span class="hljs-attr">text</span>: <span class="hljs-string">'Chinese (zh)'</span> }
        ],
        <span class="hljs-attr">labels</span>: {
          <span class="hljs-attr">de</span>: {
            <span class="hljs-attr">labelHours</span>: <span class="hljs-string">'Stunden'</span>,
            <span class="hljs-attr">labelMinutes</span>: <span class="hljs-string">'Minuten'</span>,
            <span class="hljs-attr">labelSeconds</span>: <span class="hljs-string">'Sekunden'</span>,
            <span class="hljs-attr">labelIncrement</span>: <span class="hljs-string">'Erhöhen'</span>,
            <span class="hljs-attr">labelDecrement</span>: <span class="hljs-string">'Verringern'</span>,
            <span class="hljs-attr">labelSelected</span>: <span class="hljs-string">'Ausgewählte Zeit'</span>,
            <span class="hljs-attr">labelNoTimeSelected</span>: <span class="hljs-string">'Keine Zeit ausgewählt'</span>,
            <span class="hljs-attr">labelCloseButton</span>: <span class="hljs-string">'Schließen'</span>
          },
          <span class="hljs-string">'ar-EG'</span>: {
            <span class="hljs-attr">labelHours</span>: <span class="hljs-string">'ساعات'</span>,
            <span class="hljs-attr">labelMinutes</span>: <span class="hljs-string">'الدقائق'</span>,
            <span class="hljs-attr">labelSeconds</span>: <span class="hljs-string">'ثواني'</span>,
            <span class="hljs-attr">labelAmpm</span>: <span class="hljs-string">'صباحا مساء'</span>,
            <span class="hljs-attr">labelAm</span>: <span class="hljs-string">'ص'</span>,
            <span class="hljs-attr">labelPm</span>: <span class="hljs-string">'م'</span>,
            <span class="hljs-attr">labelIncrement</span>: <span class="hljs-string">'زيادة'</span>,
            <span class="hljs-attr">labelDecrement</span>: <span class="hljs-string">'إنقاص'</span>,
            <span class="hljs-attr">labelSelected</span>: <span class="hljs-string">'الوقت المحدد'</span>,
            <span class="hljs-attr">labelNoTimeSelected</span>: <span class="hljs-string">'لا وقت المختار'</span>,
            <span class="hljs-attr">labelCloseButton</span>: <span class="hljs-string">'قريب'</span>
          },
          <span class="hljs-attr">zh</span>: {
            <span class="hljs-attr">labelHours</span>: <span class="hljs-string">'小时'</span>,
            <span class="hljs-attr">labelMinutes</span>: <span class="hljs-string">'分钟'</span>,
            <span class="hljs-attr">labelSeconds</span>: <span class="hljs-string">'秒'</span>,
            <span class="hljs-attr">labelAmpm</span>: <span class="hljs-string">'上午下午'</span>,
            <span class="hljs-attr">labelAm</span>: <span class="hljs-string">'上午'</span>,
            <span class="hljs-attr">labelPm</span>: <span class="hljs-string">'下午'</span>,
            <span class="hljs-attr">labelIncrement</span>: <span class="hljs-string">'增量'</span>,
            <span class="hljs-attr">labelDecrement</span>: <span class="hljs-string">'减量'</span>,
            <span class="hljs-attr">labelSelected</span>: <span class="hljs-string">'选定时间'</span>,
            <span class="hljs-attr">labelNoTimeSelected</span>: <span class="hljs-string">'没有选择时间'</span>,
            <span class="hljs-attr">labelCloseButton</span>: <span class="hljs-string">'关'</span>
          }
        }
      }
    },
    <span class="hljs-attr">methods</span>: {
      onContext(ctx) {
        <span class="hljs-keyword">this</span>.context = ctx
      }
    }
  }
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></pre></figure>
</div>
<h3 id="understanding-the-hourcycle" class="bv-no-focus-ring"><span class="bd-content-title">理解 <code class="text-nowrap" translate="no">hourCycle</code><a class="anchorjs-link" href="#understanding-the-hourcycle" aria-labelledby="understanding-the-hourcycle"></a></span></h3>
<p>世界各地使用两种主要的计时惯例（时钟）：12小时制和24小时制。<code class="text-nowrap" translate="no">hourCycle</code> 属性允许您访问特定语言环境使用的时钟类型。小时周期类型可以具有几个不同的值，这些值在下表中列出。<code class="text-nowrap" translate="no">hourCycle</code> 发出信号，指示如何将 <code class="text-nowrap" translate="no">'00:00:00'</code>（一天的开始时间）presented【呈现】/formatted【格式化】给特定语言环境的用户。<code class="text-nowrap" translate="no">'context'</code> 事件包括已解析的 <code class="text-nowrap" translate="no">hourCycle</code> 值。</p>
<div class="table-responsive-sm">
<table class="b-table table table-bordered table-striped bv-docs-table">
<thead class="thead-default">
<tr>
<th><code class="text-nowrap" translate="no">hourCycle</code></th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td><code class="text-nowrap" translate="no">'h12'</code></td>
<td>小时制使用 <code class="text-nowrap" translate="no">1</code>–<code class="text-nowrap" translate="no">12</code> 。12小时制，午夜从12:00 am开始</td>
</tr>
<tr>
<td><code class="text-nowrap" translate="no">'h23'</code></td>
<td>小时制使用 <code class="text-nowrap" translate="no">0</code>–<code class="text-nowrap" translate="no">23</code> 。24小时制，午夜从0:00开始</td>
</tr>
<tr>
<td><code class="text-nowrap" translate="no">'h11'</code></td>
<td>小时制使用 <code class="text-nowrap" translate="no">0</code>–<code class="text-nowrap" translate="no">11</code> 。12小时制，午夜从0:00开始</td>
</tr>
<tr>
<td><code class="text-nowrap" translate="no">'h24'</code></td>
<td>小时制使用 <code class="text-nowrap" translate="no">1</code>–<code class="text-nowrap" translate="no">24</code> 。24小时制，午夜从24:00开始</td>
</tr>
</tbody>
</table>
</div>
<p>原始HTML5 <code class="text-nowrap" translate="no">&lt;input type="date"&gt;</code> 以 <code class="text-nowrap" translate="no">'h23'</code> 格式返回时间值，而 <code class="text-nowrap" translate="no">&lt;b-form-timepicker&gt;</code> 也以 <code class="text-nowrap" translate="no">'h23'</code> 格式返回v-model。此值可能与通过 <code class="text-nowrap" translate="no">&lt;b-form-timepicker&gt;</code> 组件的 GUI（旋转按钮）提供给用户的值不同，具体取决于 <a href="#internationalization" class="font-weight-bold">locale selected</a>【所选区域】设置。</p>
<p><strong>注意：</strong> IE 11 <em>不支持</em> 解析语言环境的 <code class="text-nowrap" translate="no">hourCycle</code> 值，因此我们基于解析的 <code class="text-nowrap" translate="no">hour12</code> 值假设 <code class="text-nowrap" translate="no">h12</code> 或 <code class="text-nowrap" translate="no">h23</code> 。</p>
<h3 id="forcing-12-or-24-hour-interface" class="bv-no-focus-ring"><span class="bd-content-title">强制 12 或 24 小时界面<a class="anchorjs-link" href="#forcing-12-or-24-hour-interface" aria-labelledby="forcing-12-or-24-hour-interface"></a></span></h3>
<p>12小时还是24小时输入是由客户端浏览器的默认语言环境（或从 <code class="text-nowrap" translate="no">locale</code> 属性解析的语言环境）确定的。要强制使用12小时的用户界面，请将 <code class="text-nowrap" translate="no">hour12</code> 属性设置为 <code class="text-nowrap" translate="no">true</code> 。要强制使用24小时用户界面，请将 <code class="text-nowrap" translate="no">hour12</code> 属性设置为 <code class="text-nowrap" translate="no">false</code> 。<code class="text-nowrap" translate="no">hour12</code> 属性的默认值为 <code class="text-nowrap" translate="no">null</code> ，它使用解析的语言环境来确定要使用的接口。</p>
<p><code class="text-nowrap" translate="no">hour12</code> 属性的设置将影响解析哪个 <a href="#understanding-the-hourcycle" class="font-weight-bold"><code class="text-nowrap" translate="no">hourCycle</code></a> 以格式化小时数调节按钮。请注意，尽管这 <em>可能</em>  会影响小时按钮的格式，但是由于客户端 <code class="text-nowrap" translate="no">Intl.DateTimeFormat</code> 对特定语言环境的支持的限制，格式化的时间字符串结果可能会显示 <code class="text-nowrap" translate="no">'h12</code> 或 <code class="text-nowrap" translate="no">'h23'</code> 格式。因此，<strong>建议将 <code class="text-nowrap" translate="no">hour12</code> 属性设置为 <code class="text-nowrap" translate="no">null</code>（默认值）</strong>，以便显示语言环境默认的时间/小时格式。</p>
<h2 id="accessibility" class="bv-no-focus-ring"><span class="bd-content-title">辅助功能<a class="anchorjs-link" href="#accessibility" aria-labelledby="accessibility"></a></span></h2>
<p>弹出时间支持与 <a href="/docs/components/time#accessibility" class="font-weight-bold"><code class="text-nowrap" translate="no">&lt;b-time&gt;</code></a> 相同的键盘控件，以及以下内容：</p>
<ul>
<li><kbd class="notranslate" translate="no">ESC</kbd> 将关闭弹出时间而不选择时间</li>
</ul>
<p>在国际化时间选择器时，同样重要的是，还要使用适当的翻译字符串来更新 <code class="text-nowrap" translate="no">label-*</code> 道具，以便国际屏幕阅读器用户能够听到正确的提示和描述。</p>
<p>有关更多详细信息，请参见 <a href="/docs/components/time#accessibility" class="font-weight-bold"><code class="text-nowrap" translate="no">&lt;b-time&gt;</code></a> 文档。</p>
<h2 id="implementation-notes" class="bv-no-focus-ring"><span class="bd-content-title">实施说明<a class="anchorjs-link" href="#implementation-notes" aria-labelledby="implementation-notes"></a></span></h2>
<p><code class="text-nowrap" translate="no">&lt;b-form-timepicker&gt;</code> 基于组件 <a href="/docs/components/time" class="font-weight-bold"><code class="text-nowrap" translate="no">&lt;b-time&gt;</code></a> 和 <a href="/docs/components/dropdown" class="font-weight-bold"><code class="text-nowrap" translate="no">&lt;b-dropdown&gt;</code></a> 。</p>
<p><code class="text-nowrap" translate="no">&lt;b-form-timepicker&gt;</code> 使用 Bootstrap margin ，padding ，border ，和 flex 实用程序类，以及按钮（<code class="text-nowrap" translate="no">btn-*</code>）类和 <code class="text-nowrap" translate="no">form-control*</code>（加验证）类。</p>
<p>正确选择时间选择器和弹出窗口的样式也需要 BootstrapVue 的自定义 SCSS / CSS。</p>
<h2 id="see-also" class="bv-no-focus-ring"><span class="bd-content-title">另请参阅<a class="anchorjs-link" href="#see-also" aria-labelledby="see-also"></a></span></h2>
<ul>
<li><a href="/docs/components/time" class="font-weight-bold"><code class="text-nowrap" translate="no">&lt;b-time&gt;</code> 时间选择小部件</a></li>
<li><a href="/docs/components/form-datepicker" class="font-weight-bold"><code class="text-nowrap" translate="no">&lt;b-form-datepicker&gt;</code> 日期选择器自定义表单输入</a></li>
<li><a href="/docs/components/calendar" class="font-weight-bold"><code class="text-nowrap" translate="no">&lt;b-calendar&gt;</code> 日历日期选择小部件</a></li>
<li><a href="/docs/components/dropdown" class="font-weight-bold"><code class="text-nowrap" translate="no">&lt;b-dropdown&gt;</code> 下拉组件</a></li>
</ul>
<h2 id="component-reference" tabindex="-1" class="bv-no-focus-ring"><span class="bd-content-title">组件引用<a href="/docs/components/form-timepicker/#component-reference" class="anchorjs-link" aria-labelledby="component-reference" target="_self"></a></span></h2>
<section data-v-3b8b9b4a="" class="bd-content">
<header data-v-3b8b9b4a="" class="row align-items-center">
<div data-v-3b8b9b4a="" class="col-sm-9">
<h3 data-v-3b8b9b4a="" id="comp-ref-b-form-timepicker" tabindex="-1" class="bv-no-focus-ring"><span data-v-3b8b9b4a="" class="bd-content-title"><code data-v-3b8b9b4a="" translate="translate" class="notranslate bigger">&lt;b-form-timepicker&gt;</code><a data-v-3b8b9b4a="" href="/docs/components/form-timepicker/#comp-ref-b-form-timepicker" class="anchorjs-link" aria-labelledby="comp-ref-b-form-timepicker" target="_self"></a></span></h3>
<span data-v-3b8b9b4a="" class="badge badge-success">v2.6.0+</span> </div>
<div data-v-3b8b9b4a="" class="text-sm-right col-sm-3"><a data-v-3b8b9b4a="" rel="noopener" target="_blank" href="https://github.com/bootstrap-vue/bootstrap-vue/tree/dev/src/components/form-timepicker/form-timepicker.js" class="btn btn-outline-secondary btn-sm"> 查看源代码 </a></div>
</header>
<ul data-v-3b8b9b4a="" class="component-ref-mini-toc my-3">
<li data-v-3b8b9b4a=""><a data-v-3b8b9b4a="" href="#comp-ref-b-form-timepicker-aliases"><code data-v-3b8b9b4a="" translate="translate" class="notranslate">&lt;b-form-timepicker&gt;</code> 组件别名 </a></li>
<li data-v-3b8b9b4a=""><a data-v-3b8b9b4a="" href="#comp-ref-b-form-timepicker-props"><code data-v-3b8b9b4a="" translate="translate" class="notranslate">&lt;b-form-timepicker&gt;</code> 属性 </a></li>
<li data-v-3b8b9b4a=""><a data-v-3b8b9b4a="" href="#comp-ref-b-form-timepicker-v-model"><code data-v-3b8b9b4a="" translate="translate" class="notranslate">&lt;b-form-timepicker&gt;</code> v-model </a></li>
<li data-v-3b8b9b4a=""><a data-v-3b8b9b4a="" href="#comp-ref-b-form-timepicker-slots"><code data-v-3b8b9b4a="" translate="translate" class="notranslate">&lt;b-form-timepicker&gt;</code> 插槽 </a></li>
<li data-v-3b8b9b4a=""><a data-v-3b8b9b4a="" href="#comp-ref-b-form-timepicker-events"><code data-v-3b8b9b4a="" translate="translate" class="notranslate">&lt;b-form-timepicker&gt;</code> 事件 </a></li>
</ul>
<article data-v-3b8b9b4a="" class="bd-content">
<h4 data-v-3b8b9b4a="" id="comp-ref-b-form-timepicker-aliases" tabindex="-1" class="bv-no-focus-ring mb-3"><span data-v-3b8b9b4a="" class="bd-content-title"> 组件别名 <a data-v-3b8b9b4a="" href="/docs/components/form-timepicker/#comp-ref-b-form-timepicker-aliases" class="anchorjs-link" aria-labelledby="comp-ref-b-form-timepicker-aliases" target="_self"></a></span></h4>
<p data-v-3b8b9b4a=""><code data-v-3b8b9b4a="" translate="translate" class="notranslate">&lt;b-form-timepicker&gt;</code> 也可以通过以下别名使用：</p>
<ul data-v-3b8b9b4a="">
<li data-v-3b8b9b4a=""><code data-v-3b8b9b4a="" translate="translate" class="notranslate">&lt;b-timepicker&gt;</code></li>
</ul>
<div data-v-3b8b9b4a="" class="alert alert-info">
<p data-v-3b8b9b4a="" class="mb-0 small"> 注意：组件别名仅在导入所有 BootstrapVue 或使用组件组插件时可用。 </p>
</div>
</article>
<article data-v-3b8b9b4a="" class="bd-content">
<h4 data-v-3b8b9b4a="" id="comp-ref-b-form-timepicker-props" tabindex="-1" class="bv-no-focus-ring mb-3"><span data-v-3b8b9b4a="" class="bd-content-title"> 属性 <a data-v-3b8b9b4a="" href="/docs/components/form-timepicker/#comp-ref-b-form-timepicker-props" class="anchorjs-link" aria-labelledby="comp-ref-b-form-timepicker-props" target="_self"></a></span></h4>
<div data-v-3b8b9b4a="" class="table-responsive-sm">
<table role="table" aria-busy="false" aria-colcount="4" class="table b-table bv-docs-table table-striped" id="__BVID__346">
<thead role="rowgroup" class="">
<tr role="row" class="">
<th role="columnheader" scope="col" tabindex="0" aria-colindex="1" aria-sort="none" class="b-table-sort-icon-left">属性<span class="sr-only"> (Click to sort Ascending)</span></th>
<th role="columnheader" scope="col" tabindex="0" aria-colindex="2" class="">类型</th>
<th role="columnheader" scope="col" tabindex="0" aria-colindex="3" class="">默认值</th>
<th role="columnheader" scope="col" tabindex="0" aria-colindex="4" class="">描述</th>
</tr>
</thead>
<tbody role="rowgroup">
<tr role="row" data-pk="id" class="" id="__BVID__346__row_id">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">id</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">用于在渲染的内容上设置“id”属性，并用作根据需要生成任何其他元素ID的基础</td>
</tr>
<tr role="row" data-pk="value" class="" id="__BVID__346__row_value">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">value</code> <span data-v-3b8b9b4a="" class="badge badge-primary">v-model</span></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">最初选择的时间值。接受“HH：mm：ss”字符串。 有效值范围是从“00:00:00”到“23:59:59”</td>
</tr>
<tr role="row" data-pk="reset-value" class="" id="__BVID__346__row_reset-value">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">reset-value</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">单击可选的“reset”按钮时，所选时间将设置为此值。默认是清除选择的值</td>
</tr>
<tr role="row" data-pk="placeholder" class="" id="__BVID__346__row_placeholder">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">placeholder</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">当未选择日期时，文本将显示在表单控件中。默认为“label-no-date-selected”属性值</td>
</tr>
<tr role="row" data-pk="size" class="" id="__BVID__346__row_size">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">size</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">设置组件外观的大小。'sm'，'md'（默认）或'lg'</td>
</tr>
<tr role="row" data-pk="disabled" class="" id="__BVID__346__row_disabled">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">disabled</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">将时间选择器置于非交互式禁用状态</td>
</tr>
<tr role="row" data-pk="readonly" class="" id="__BVID__346__row_readonly">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">readonly</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">将时间选择器置于交互式只读状态。禁用更新v-model，同时仍允许聚焦旋转按钮</td>
</tr>
<tr role="row" data-pk="required" class="" id="__BVID__346__row_required">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">required</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">设置后，在组件上添加aria-required =“true”属性。所需的验证需要由您的应用程序处理</td>
</tr>
<tr role="row" data-pk="name" class="" id="__BVID__346__row_name">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">name</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">设置表单控件上“name”属性的值</td>
</tr>
<tr role="row" data-pk="form" class="" id="__BVID__346__row_form">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">form</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">表单控件所属的表单的ID。在控件上设置“form”属性</td>
</tr>
<tr role="row" data-pk="state" class="" id="__BVID__346__row_state">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">state</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">控制组件的验证状态外观。“true”表示有效，“false”表示无效”，“null”表示无验证状态</td>
</tr>
<tr role="row" data-pk="hour12" class="" id="__BVID__346__row_hour12">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">hour12</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">Tri-state 属性。如果为true，则强制接口为12小时格式。如果为false，则将界面强制设置为24小时格式。如果为null，则当前语言环境将确定12或24小时界面（默认）</td>
</tr>
<tr role="row" data-pk="locale" class="" id="__BVID__346__row_locale">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">locale</code></td>
<td aria-colindex="2" role="cell" class="">String or Array</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">要使用的组件的语言环境。当传递语言环境数组时，语言环境的顺序从最优选到最不优选。如果未提供，则默认为客户端默认语言环境</td>
</tr>
<tr role="row" data-pk="show-seconds" class="" id="__BVID__346__row_show-seconds">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">show-seconds</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">如果为true，则显示秒旋转按钮。如果为false，则不会显示秒旋转按钮，并且时间的秒部分将始终为0。</td>
</tr>
<tr role="row" data-pk="hide-header" class="" id="__BVID__346__row_hide-header">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">hide-header</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">设置后，可视地隐藏选定的日期标题</td>
</tr>
<tr role="row" data-pk="seconds-step" class="" id="__BVID__346__row_seconds-step">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">seconds-step</code></td>
<td aria-colindex="2" role="cell" class="">Number or String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">1</code></td>
<td aria-colindex="4" role="cell" class="">秒旋钮的步长值。应该将一个值平均分为60</td>
</tr>
<tr role="row" data-pk="minutes-step" class="" id="__BVID__346__row_minutes-step">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">minutes-step</code></td>
<td aria-colindex="2" role="cell" class="">Number or String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">1</code></td>
<td aria-colindex="4" role="cell" class="">分钟旋钮的步长值。应该将一个值平均分为60</td>
</tr>
<tr role="row" data-pk="now-button" class="" id="__BVID__346__row_now-button">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">now-button</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">设置后，显示可选的“select now”按钮</td>
</tr>
<tr role="row" data-pk="label-now-button" class="" id="__BVID__346__row_label-now-button">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">label-now-button</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">'Select now'</code></td>
<td aria-colindex="4" role="cell" class="">可选“select now”按钮的内容</td>
</tr>
<tr role="row" data-pk="now-button-variant" class="" id="__BVID__346__row_now-button-variant">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">now-button-variant</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">'outline-primary'</code></td>
<td aria-colindex="4" role="cell" class="">用于可选的“select now”按钮的按钮变量</td>
</tr>
<tr role="row" data-pk="reset-button" class="" id="__BVID__346__row_reset-button">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">reset-button</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">设置后，显示可选的“reset”按钮</td>
</tr>
<tr role="row" data-pk="label-reset-button" class="" id="__BVID__346__row_label-reset-button">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">label-reset-button</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">'Reset'</code></td>
<td aria-colindex="4" role="cell" class="">可选的“reset”按钮的内容</td>
</tr>
<tr role="row" data-pk="reset-button-variant" class="" id="__BVID__346__row_reset-button-variant">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">reset-button-variant</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">'outline-danger'</code></td>
<td aria-colindex="4" role="cell" class="">用于可选的“reset”按钮的按钮变量</td>
</tr>
<tr role="row" data-pk="no-close-button" class="" id="__BVID__346__row_no-close-button">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">no-close-button</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">设置后，禁用显示关闭按钮</td>
</tr>
<tr role="row" data-pk="label-close-button" class="" id="__BVID__346__row_label-close-button">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">label-close-button</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">'Close'</code></td>
<td aria-colindex="4" role="cell" class="">“Close”按钮的内容</td>
</tr>
<tr role="row" data-pk="close-button-variant" class="" id="__BVID__346__row_close-button-variant">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">close-button-variant</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">'outline-secondary'</code></td>
<td aria-colindex="4" role="cell" class="">用于可选的“close”按钮的按钮变量</td>
</tr>
<tr role="row" data-pk="label-selected" class="" id="__BVID__346__row_label-selected">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">label-selected</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">'Selected time'</code></td>
<td aria-colindex="4" role="cell" class="">选择时间时隐藏的 sr-only 字符串</td>
</tr>
<tr role="row" data-pk="label-no-time-selected" class="" id="__BVID__346__row_label-no-time-selected">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">label-no-time-selected</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">'No time selected'</code></td>
<td aria-colindex="4" role="cell" class="">未选择时间时显示的字符串</td>
</tr>
<tr role="row" data-pk="label-hours" class="" id="__BVID__346__row_label-hours">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">label-hours</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">'Hours'</code></td>
<td aria-colindex="4" role="cell" class="">Hours 旋钮上的 aria-label 属性的值</td>
</tr>
<tr role="row" data-pk="label-minutes" class="" id="__BVID__346__row_label-minutes">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">label-minutes</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">'Minutes'</code></td>
<td aria-colindex="4" role="cell" class="">“Minutes”微调按钮上“aria-label”属性的值</td>
</tr>
<tr role="row" data-pk="label-seconds" class="" id="__BVID__346__row_label-seconds">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">label-seconds</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">'Seconds'</code></td>
<td aria-colindex="4" role="cell" class="">Seconds 标签上的“ aria-label”属性的值</td>
</tr>
<tr role="row" data-pk="label-ampm" class="" id="__BVID__346__row_label-ampm">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">label-ampm</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">'AM/PM'</code></td>
<td aria-colindex="4" role="cell" class="">“AM / PM”按钮上的“aria-label”属性的值</td>
</tr>
<tr role="row" data-pk="label-am" class="" id="__BVID__346__row_label-am">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">label-am</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">'AM'</code></td>
<td aria-colindex="4" role="cell" class="">选择“AM”时在AM / PM旋转按钮中显示的文本</td>
</tr>
<tr role="row" data-pk="label-pm" class="" id="__BVID__346__row_label-pm">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">label-pm</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">'PM'</code></td>
<td aria-colindex="4" role="cell" class="">选择“PM”时在AM / PM旋转按钮中显示的文本</td>
</tr>
<tr role="row" data-pk="label-increment" class="" id="__BVID__346__row_label-increment">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">label-increment</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">'Increment'</code></td>
<td aria-colindex="4" role="cell" class="">旋转按钮“+”按钮上的“ aria-label”属性的值</td>
</tr>
<tr role="row" data-pk="label-decrement" class="" id="__BVID__346__row_label-decrement">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">label-decrement</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">'Decrement'</code></td>
<td aria-colindex="4" role="cell" class="">旋转按钮“-”按钮上的“aria-label”属性的值</td>
</tr>
<tr role="row" data-pk="menu-class" class="" id="__BVID__346__row_menu-class">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">menu-class</code></td>
<td aria-colindex="2" role="cell" class="">String or Array or Object</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">应用于弹出菜单包装的一个或多个类</td>
</tr>
<tr role="row" data-pk="dropup" class="" id="__BVID__346__row_dropup">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">dropup</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">设置后，将菜单置于按钮顶部</td>
</tr>
<tr role="row" data-pk="dropright" class="" id="__BVID__346__row_dropright">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">dropright</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">设置后，将菜单置于按钮右侧</td>
</tr>
<tr role="row" data-pk="dropleft" class="" id="__BVID__346__row_dropleft">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">dropleft</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">设置后，将菜单置于按钮左侧</td>
</tr>
<tr role="row" data-pk="right" class="" id="__BVID__346__row_right">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">right</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">将菜单的右边与按钮的右边对齐</td>
</tr>
<tr role="row" data-pk="offset" class="" id="__BVID__346__row_offset">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">offset</code></td>
<td aria-colindex="2" role="cell" class="">Number or String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">0</code></td>
<td aria-colindex="4" role="cell" class="">指定要移动菜单的像素数。支持负值</td>
</tr>
<tr role="row" data-pk="no-flip" class="" id="__BVID__346__row_no-flip">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">no-flip</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">防止菜单自动翻转位置</td>
</tr>
<tr role="row" data-pk="popper-opts" class="" id="__BVID__346__row_popper-opts">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">popper-opts</code></td>
<td aria-colindex="2" role="cell" class="">Any</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">传递给 Popper.js 的其他配置</td>
</tr>
<tr role="row" data-pk="boundary" class="" id="__BVID__346__row_boundary">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">boundary</code></td>
<td aria-colindex="2" role="cell" class="">String or HTMLElement</td>
<td aria-colindex="3" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="word-wrap-normal notranslate">'scrollParent'</code></td>
<td aria-colindex="4" role="cell" class="">菜单的边界约束：'scrollParent'，'window'，'viewport'或对 HTMLElement 的引用</td>
</tr>
</tbody>
</table>
</div>
</article>
<article data-v-3b8b9b4a="" class="bd-content">
<h4 data-v-3b8b9b4a="" id="comp-ref-b-form-timepicker-v-model" tabindex="-1" class="bv-no-focus-ring mb-3"><span data-v-3b8b9b4a="" class="bd-content-title"> v-model <a data-v-3b8b9b4a="" href="/docs/components/form-timepicker/#comp-ref-b-form-timepicker-v-model" class="anchorjs-link" aria-labelledby="comp-ref-b-form-timepicker-v-model" target="_self"></a></span></h4>
<div data-v-3b8b9b4a="" class="table-responsive-sm">
<table role="table" aria-busy="false" aria-colcount="2" class="table b-table bv-docs-table table-striped" id="__BVID__401">
<thead role="rowgroup" class="">
<tr role="row" class="">
<th role="columnheader" scope="col" aria-colindex="1" class="">属性</th>
<th role="columnheader" scope="col" aria-colindex="2" class="">事件</th>
</tr>
</thead>
<tbody role="rowgroup">
<tr role="row" class="">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="notranslate">value</code></td>
<td aria-colindex="2" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="notranslate">input</code></td>
</tr>
</tbody>
</table>
</div>
</article>
<article data-v-3b8b9b4a="" class="bd-content">
<h4 data-v-3b8b9b4a="" id="comp-ref-b-form-timepicker-slots" tabindex="-1" class="bv-no-focus-ring mb-3"><span data-v-3b8b9b4a="" class="bd-content-title"> 插槽 <a data-v-3b8b9b4a="" href="/docs/components/form-timepicker/#comp-ref-b-form-timepicker-slots" class="anchorjs-link" aria-labelledby="comp-ref-b-form-timepicker-slots" target="_self"></a></span></h4>
<div data-v-3b8b9b4a="" class="table-responsive-sm">
<table role="table" aria-busy="false" aria-colcount="3" class="table b-table bv-docs-table table-striped" id="__BVID__410">
<thead role="rowgroup" class="">
<tr role="row" class="">
<th role="columnheader" scope="col" aria-colindex="1" class="">插槽名称</th>
<th role="columnheader" scope="col" aria-colindex="2" class="">描述</th>
<th role="columnheader" scope="col" aria-colindex="3" class="">范围</th>
</tr>
</thead>
<tbody role="rowgroup">
<tr role="row" data-pk="button-content" class="" id="__BVID__410__row_button-content">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="text-nowrap notranslate">button-content</code></td>
<td aria-colindex="2" role="cell" class="">放置在时间选择器图标按钮中的内容</td>
<td aria-colindex="3" role="cell" class=""><button data-v-3b8b9b4a="" type="button" class="btn py-0 btn-info btn-sm"> Scope </button></td>
</tr>
</tbody>
</table>
</div>
</article>
<article data-v-3b8b9b4a="" class="bd-content">
<h4 data-v-3b8b9b4a="" id="comp-ref-b-form-timepicker-events" tabindex="-1" class="bv-no-focus-ring mb-3"><span data-v-3b8b9b4a="" class="bd-content-title"> 事件 <a data-v-3b8b9b4a="" href="/docs/components/form-timepicker/#comp-ref-b-form-timepicker-events" class="anchorjs-link" aria-labelledby="comp-ref-b-form-timepicker-events" target="_self"></a></span></h4>
<div data-v-3b8b9b4a="" class="table-responsive-sm">
<table role="table" aria-busy="false" aria-colcount="3" class="table b-table bv-docs-table table-striped" id="__BVID__420">
<thead role="rowgroup" class="">
<tr role="row" class="">
<th role="columnheader" scope="col" aria-colindex="1" class="">事件</th>
<th role="columnheader" scope="col" aria-colindex="2" class="">参数</th>
<th role="columnheader" scope="col" aria-colindex="3" class="">描述</th>
</tr>
</thead>
<tbody role="rowgroup">
<tr role="row" data-pk="input" class="" id="__BVID__420__row_input">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="notranslate">input</code></td>
<td aria-colindex="2" role="cell" class=""><ol data-v-3b8b9b4a="" class="list-unstyled mb-0">
<li data-v-3b8b9b4a=""><code data-v-3b8b9b4a="" translate="translate" class="notranslate">time</code> - <span data-v-3b8b9b4a="">以HH：mm：ss格式（24小时格式）的字符串</span></li>
</ol></td>
<td aria-colindex="3" role="cell" class="">更新 v-model 时发出</td>
</tr>
<tr role="row" data-pk="context" class="" id="__BVID__420__row_context">
<td aria-colindex="1" role="cell" class=""><code data-v-3b8b9b4a="" translate="translate" class="notranslate">context</code></td>
<td aria-colindex="2" role="cell" class=""><ol data-v-3b8b9b4a="" class="list-unstyled mb-0">
<li data-v-3b8b9b4a=""><code data-v-3b8b9b4a="" translate="translate" class="notranslate">context</code> - <span data-v-3b8b9b4a="">`b-time`上下文对象。有关详细信息，请参见`b-time`文档。</span></li>
</ol></td>
<td aria-colindex="3" role="cell" class="">上下文事件。当用户通过鼠标或光标控件更改任何 Spinbutton【旋转按钮】值时发出。在首次实例化组件或更改语言环境时也发出</td>
</tr>
</tbody>
</table>
</div>
</article>
</section>
<h3 id="importing-individual-components" tabindex="-1" class="bv-no-focus-ring"><span class="bd-content-title"> 导入单个组件 <a href="/docs/components/form-timepicker/#importing-individual-components" class="anchorjs-link" aria-labelledby="importing-individual-components" target="_self"></a></span></h3>
<p> 您可以通过以下命名的导出将单个组件导入到项目中： </p>
<div class="table-responsive-sm">
<table role="table" aria-busy="false" aria-colcount="3" class="table b-table bv-docs-table table-striped" id="__BVID__432">
<thead role="rowgroup" class="thead-default">
<tr role="row" class="">
<th role="columnheader" scope="col" aria-colindex="1" class="">组件</th>
<th role="columnheader" scope="col" aria-colindex="2" class="">命名输出</th>
<th role="columnheader" scope="col" aria-colindex="3" class="">导入路径</th>
</tr>
</thead>
<tbody role="rowgroup">
<tr role="row" class="">
<td aria-colindex="1" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">&lt;b-form-timepicker&gt;</code></td>
<td aria-colindex="2" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">BFormTimepicker</code></td>
<td aria-colindex="3" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">bootstrap-vue</code></td>
</tr>
</tbody>
</table>
</div>
<p><strong>示例：</strong></p>
<figure class="highlight"><pre translate="translate" class="hljs language-js text-monospace p-2 notranslate javascript"><span class="hljs-keyword">import</span> { BFormTimepicker } <span class="hljs-keyword">from</span> <span class="hljs-string">'bootstrap-vue'</span>
Vue.component(<span class="hljs-string">'b-form-timepicker'</span>, BFormTimepicker)</pre></figure>
</article>
<article class="bd-content">
<h3 id="importing-as-a-plugin" tabindex="-1" class="bv-no-focus-ring"><span class="bd-content-title"> 导入为Vue.js插件 <a href="/docs/components/form-timepicker/#importing-as-a-plugin" class="anchorjs-link" aria-labelledby="importing-as-a-plugin" target="_self"></a></span></h3>
<p> 该插件包括上面列出的所有单个组件。插件还包括任何组件别名。 </p>
<div class="table-responsive-sm">
<table fileds="namedExport,importPath" role="table" aria-busy="false" aria-colcount="2" class="table b-table bv-docs-table table-striped b-table-caption-top" id="__BVID__442">
<thead role="rowgroup" class="thead-default">
<tr role="row" class="">
<th role="columnheader" scope="col" aria-colindex="1" class="">命名输出</th>
<th role="columnheader" scope="col" aria-colindex="2" class="">导入路径</th>
</tr>
</thead>
<tbody role="rowgroup">
<tr role="row" class="">
<td aria-colindex="1" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">FormTimepickerPlugin</code></td>
<td aria-colindex="2" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">bootstrap-vue</code></td>
</tr>
</tbody>
</table>
</div>
<p><strong>示例：</strong></p>
<figure class="highlight"><pre translate="translate" class="hljs language-js text-monospace p-2 notranslate javascript"><span class="hljs-keyword">import</span> { FormTimepickerPlugin } <span class="hljs-keyword">from</span> <span class="hljs-string">'bootstrap-vue'</span>
Vue.use(FormTimepickerPlugin)</pre></figure>
</article>




</main>
</div>
</div>


<script src="../../../v4/assets/js/vendor/jquery-slim.min.js"></script>
<script src="../../../v4/dist/js/popper.min.js"></script> 
<script src="../../../v4/dist/js/bootstrap.min.js"></script> 
<script src="../../../v4/assets/js/docs.min.js"></script> 
<script src="../../../v4/assets/js/ie-emulation-modes-warning.js"></script> 
<script src="../../../v4/assets/js/docsearch.min.js"></script> 
<script>
  docsearch({
    appId: 'PRR89ISST8',
    apiKey: '95044d57d4d7bb744f322d1f18ed607f',
    indexName: 'z01-bootstrapV4',
    inputSelector: '#search-input',
    handleSelected: function (input, event, suggestion) {
      var url = suggestion.url;
      url = suggestion.isLvl1 ? url.split('#')[0]: url;
      // If it's a title we remove the anchor so it does not jump.
      window.location.href = url;
    },
    transformData: function (hits) {
      return hits.map(function (hit) {
        hit.url = hit.url.replace('https://v4-alpha.getbootstrap.com', '/docs/4.0');
        return hit;
      });
    },
    debug: false // Set debug to true if you want to inspect the dropdown
  });
</script> 
<script>
  Holder.addTheme('gray', {
    bg: '#777',
    fg: 'rgba(255,255,255,.75)',
    font: 'Helvetica',
    fontweight: 'normal'
  });
</script>
</body>
</html>
